package maosui.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * Created by wdj on 14-8-10.
 */
@Entity
@javax.persistence.Table(name = "51lpz_destudent")
public class StudentEntity {
    private int cid;

    @Id
    @javax.persistence.Column(name = "cid", nullable = false, insertable = true, updatable = true)
    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    private String name;

    @Basic
    @javax.persistence.Column(name = "name", nullable = true, insertable = true, updatable = true, length = 12)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String sex;

    @Basic
    @javax.persistence.Column(name = "sex", nullable = true, insertable = true, updatable = true, length = 12)
    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    private Integer age;

    @Basic
    @javax.persistence.Column(name = "age", nullable = true, insertable = true, updatable = true)
    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    private Date brithday;

    @Basic
    @javax.persistence.Column(name = "brithday", nullable = false, insertable = true, updatable = true)
    public Date getBrithday() {
        return brithday;
    }

    public void setBrithday(Date brithday) {
        this.brithday = brithday;
    }

    private String sphoto;

    @Basic
    @javax.persistence.Column(name = "sphoto", nullable = false, insertable = true, updatable = true, length = 123)
    public String getSphoto() {
        return sphoto;
    }

    public void setSphoto(String sphoto) {
        this.sphoto = sphoto;
    }

    private String motto;

    @Basic
    @javax.persistence.Column(name = "motto", nullable = false, insertable = true, updatable = true, length = 23)
    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    private int homeprovince;

    @Basic
    @javax.persistence.Column(name = "homeprovince", nullable = false, insertable = true, updatable = true)
    public int getHomeprovince() {
        return homeprovince;
    }

    public void setHomeprovince(int homeprovince) {
        this.homeprovince = homeprovince;
    }

    private Integer homecity;

    @Basic
    @javax.persistence.Column(name = "homecity", nullable = true, insertable = true, updatable = true)
    public Integer getHomecity() {
        return homecity;
    }

    public void setHomecity(Integer homecity) {
        this.homecity = homecity;
    }

    private String schoolid;

    @Basic
    @javax.persistence.Column(name = "schoolid", nullable = true, insertable = true, updatable = true, length = 12)
    public String getSchoolid() {
        return schoolid;
    }

    public void setSchoolid(String schoolid) {
        this.schoolid = schoolid;
    }

    private Integer classid;

    @Basic
    @javax.persistence.Column(name = "classid", nullable = true, insertable = true, updatable = true)
    public Integer getClassid() {
        return classid;
    }

    public void setClassid(Integer classid) {
        this.classid = classid;
    }

    private Integer zhitype;

    @Basic
    @javax.persistence.Column(name = "zhitype", nullable = true, insertable = true, updatable = true)
    public Integer getZhitype() {
        return zhitype;
    }

    public void setZhitype(Integer zhitype) {
        this.zhitype = zhitype;
    }

    private int industry;

    @Basic
    @javax.persistence.Column(name = "industry", nullable = false, insertable = true, updatable = true)
    public int getIndustry() {
        return industry;
    }

    public void setIndustry(int industry) {
        this.industry = industry;
    }

    private String honework;

    @Basic
    @javax.persistence.Column(name = "honework", nullable = false, insertable = true, updatable = true, length = 65535)
    public String getHonework() {
        return honework;
    }

    public void setHonework(String honework) {
        this.honework = honework;
    }

    private int worksprovince;

    @Basic
    @javax.persistence.Column(name = "worksprovince", nullable = false, insertable = true, updatable = true)
    public int getWorksprovince() {
        return worksprovince;
    }

    public void setWorksprovince(int worksprovince) {
        this.worksprovince = worksprovince;
    }

    private Integer workcity;

    @Basic
    @javax.persistence.Column(name = "workcity", nullable = true, insertable = true, updatable = true)
    public Integer getWorkcity() {
        return workcity;
    }

    public void setWorkcity(Integer workcity) {
        this.workcity = workcity;
    }

    private Integer shenggao;

    @Basic
    @javax.persistence.Column(name = "shenggao", nullable = true, insertable = true, updatable = true)
    public Integer getShenggao() {
        return shenggao;
    }

    public void setShenggao(Integer shenggao) {
        this.shenggao = shenggao;
    }

    private Integer zhengzhi;

    @Basic
    @javax.persistence.Column(name = "zhengzhi", nullable = true, insertable = true, updatable = true)
    public Integer getZhengzhi() {
        return zhengzhi;
    }

    public void setZhengzhi(Integer zhengzhi) {
        this.zhengzhi = zhengzhi;
    }

    private Integer zhuanye;

    @Basic
    @javax.persistence.Column(name = "zhuanye", nullable = true, insertable = true, updatable = true)
    public Integer getZhuanye() {
        return zhuanye;
    }

    public void setZhuanye(Integer zhuanye) {
        this.zhuanye = zhuanye;
    }

    private int workpost;

    @Basic
    @javax.persistence.Column(name = "workpost", nullable = false, insertable = true, updatable = true)
    public int getWorkpost() {
        return workpost;
    }

    public void setWorkpost(int workpost) {
        this.workpost = workpost;
    }

    private Integer tuanyuan;

    @Basic
    @javax.persistence.Column(name = "tuanyuan", nullable = true, insertable = true, updatable = true)
    public Integer getTuanyuan() {
        return tuanyuan;
    }

    public void setTuanyuan(Integer tuanyuan) {
        this.tuanyuan = tuanyuan;
    }

    private Integer minzu;

    @Basic
    @javax.persistence.Column(name = "minzu", nullable = true, insertable = true, updatable = true)
    public Integer getMinzu() {
        return minzu;
    }

    public void setMinzu(Integer minzu) {
        this.minzu = minzu;
    }

    private Integer poorstu;

    @Basic
    @javax.persistence.Column(name = "poorstu", nullable = true, insertable = true, updatable = true)
    public Integer getPoorstu() {
        return poorstu;
    }

    public void setPoorstu(Integer poorstu) {
        this.poorstu = poorstu;
    }

    private Integer huojiang;

    @Basic
    @javax.persistence.Column(name = "huojiang", nullable = true, insertable = true, updatable = true)
    public Integer getHuojiang() {
        return huojiang;
    }

    public void setHuojiang(Integer huojiang) {
        this.huojiang = huojiang;
    }

    private Integer worktime;

    @Basic
    @javax.persistence.Column(name = "worktime", nullable = true, insertable = true, updatable = true)
    public Integer getWorktime() {
        return worktime;
    }

    public void setWorktime(Integer worktime) {
        this.worktime = worktime;
    }

    private Integer comtype;

    @Basic
    @javax.persistence.Column(name = "comtype", nullable = true, insertable = true, updatable = true)
    public Integer getComtype() {
        return comtype;
    }

    public void setComtype(Integer comtype) {
        this.comtype = comtype;
    }

    private Integer paytype;

    @Basic
    @javax.persistence.Column(name = "paytype", nullable = true, insertable = true, updatable = true)
    public Integer getPaytype() {
        return paytype;
    }

    public void setPaytype(Integer paytype) {
        this.paytype = paytype;
    }

    private String phone;

    @Basic
    @javax.persistence.Column(name = "phone", nullable = true, insertable = true, updatable = true, length = 14)
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    private String photonumber;

    @Basic
    @javax.persistence.Column(name = "photonumber", nullable = false, insertable = true, updatable = true, length = 23)
    public String getPhotonumber() {
        return photonumber;
    }

    public void setPhotonumber(String photonumber) {
        this.photonumber = photonumber;
    }

    private String email;

    @Basic
    @javax.persistence.Column(name = "email", nullable = true, insertable = true, updatable = true, length = 34)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    private String qq;

    @Basic
    @javax.persistence.Column(name = "QQ", nullable = true, insertable = true, updatable = true, length = 23)
    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    private String miaoshu;

    @Basic
    @javax.persistence.Column(name = "miaoshu", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getMiaoshu() {
        return miaoshu;
    }

    public void setMiaoshu(String miaoshu) {
        this.miaoshu = miaoshu;
    }

    private String xingrong;

    @Basic
    @javax.persistence.Column(name = "xingrong", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getXingrong() {
        return xingrong;
    }

    public void setXingrong(String xingrong) {
        this.xingrong = xingrong;
    }

    private String pingjia;

    @Basic
    @javax.persistence.Column(name = "pingjia", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getPingjia() {
        return pingjia;
    }

    public void setPingjia(String pingjia) {
        this.pingjia = pingjia;
    }

    private String aihao;

    @Basic
    @javax.persistence.Column(name = "aihao", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getAihao() {
        return aihao;
    }

    public void setAihao(String aihao) {
        this.aihao = aihao;
    }

    private String fiendping;

    @Basic
    @javax.persistence.Column(name = "fiendping", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getFiendping() {
        return fiendping;
    }

    public void setFiendping(String fiendping) {
        this.fiendping = fiendping;
    }

    private String youshi;

    @Basic
    @javax.persistence.Column(name = "youshi", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getYoushi() {
        return youshi;
    }

    public void setYoushi(String youshi) {
        this.youshi = youshi;
    }

    private String jingyan;

    @Basic
    @javax.persistence.Column(name = "jingyan", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getJingyan() {
        return jingyan;
    }

    public void setJingyan(String jingyan) {
        this.jingyan = jingyan;
    }

    private long publishid;

    @Basic
    @javax.persistence.Column(name = "publishid", nullable = false, insertable = true, updatable = true)
    public long getPublishid() {
        return publishid;
    }

    public void setPublishid(long publishid) {
        this.publishid = publishid;
    }

    private int check;

    @Basic
    @javax.persistence.Column(name = "check", nullable = false, insertable = true, updatable = true)
    public int getCheck() {
        return check;
    }

    public void setCheck(int check) {
        this.check = check;
    }

    private String zhenjiaid;

    @Basic
    @javax.persistence.Column(name = "zhenjiaid", nullable = false, insertable = true, updatable = true, length = 65535)
    public String getZhenjiaid() {
        return zhenjiaid;
    }

    public void setZhenjiaid(String zhenjiaid) {
        this.zhenjiaid = zhenjiaid;
    }

    private Byte isShow;

    @Basic
    @javax.persistence.Column(name = "is_show", nullable = true, insertable = true, updatable = true)
    public Byte getIsShow() {
        return isShow;
    }

    public void setIsShow(Byte isShow) {
        this.isShow = isShow;
    }

    private int hometown;

    @Basic
    @javax.persistence.Column(name = "hometown", nullable = false, insertable = true, updatable = true)
    public int getHometown() {
        return hometown;
    }

    public void setHometown(int hometown) {
        this.hometown = hometown;
    }

    private int location;

    @Basic
    @javax.persistence.Column(name = "location", nullable = false, insertable = true, updatable = true)
    public int getLocation() {
        return location;
    }

    public void setLocation(int location) {
        this.location = location;
    }

    private int readCount;

    @Basic
    @javax.persistence.Column(name = "read_count", nullable = false, insertable = true, updatable = true)
    public int getReadCount() {
        return readCount;
    }

    public void setReadCount(int readCount) {
        this.readCount = readCount;
    }

    private int agreeCount;

    @Basic
    @javax.persistence.Column(name = "agree_count", nullable = false, insertable = true, updatable = true)
    public int getAgreeCount() {
        return agreeCount;
    }

    public void setAgreeCount(int agreeCount) {
        this.agreeCount = agreeCount;
    }

    private int thrownCount;

    @Basic
    @javax.persistence.Column(name = "thrown_count", nullable = false, insertable = true, updatable = true)
    public int getThrownCount() {
        return thrownCount;
    }

    public void setThrownCount(int thrownCount) {
        this.thrownCount = thrownCount;
    }

    private Timestamp inserttime;

    @Basic
    @javax.persistence.Column(name = "inserttime", nullable = true, insertable = true, updatable = true)
    public Timestamp getInserttime() {
        return inserttime;
    }

    public void setInserttime(Timestamp inserttime) {
        this.inserttime = inserttime;
    }

    private Timestamp updatetime;

    @Basic
    @javax.persistence.Column(name = "updatetime", nullable = true, insertable = true, updatable = true)
    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    private String remark;

    @Basic
    @javax.persistence.Column(name = "remark", nullable = true, insertable = true, updatable = true, length = 100)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        StudentEntity that = (StudentEntity) o;

        if (agreeCount != that.agreeCount) return false;
        if (check != that.check) return false;
        if (cid != that.cid) return false;
        if (homeprovince != that.homeprovince) return false;
        if (hometown != that.hometown) return false;
        if (industry != that.industry) return false;
        if (location != that.location) return false;
        if (publishid != that.publishid) return false;
        if (readCount != that.readCount) return false;
        if (thrownCount != that.thrownCount) return false;
        if (workpost != that.workpost) return false;
        if (worksprovince != that.worksprovince) return false;
        if (age != null ? !age.equals(that.age) : that.age != null) return false;
        if (aihao != null ? !aihao.equals(that.aihao) : that.aihao != null) return false;
        if (brithday != null ? !brithday.equals(that.brithday) : that.brithday != null) return false;
        if (classid != null ? !classid.equals(that.classid) : that.classid != null) return false;
        if (comtype != null ? !comtype.equals(that.comtype) : that.comtype != null) return false;
        if (email != null ? !email.equals(that.email) : that.email != null) return false;
        if (fiendping != null ? !fiendping.equals(that.fiendping) : that.fiendping != null) return false;
        if (homecity != null ? !homecity.equals(that.homecity) : that.homecity != null) return false;
        if (honework != null ? !honework.equals(that.honework) : that.honework != null) return false;
        if (huojiang != null ? !huojiang.equals(that.huojiang) : that.huojiang != null) return false;
        if (inserttime != null ? !inserttime.equals(that.inserttime) : that.inserttime != null) return false;
        if (isShow != null ? !isShow.equals(that.isShow) : that.isShow != null) return false;
        if (jingyan != null ? !jingyan.equals(that.jingyan) : that.jingyan != null) return false;
        if (miaoshu != null ? !miaoshu.equals(that.miaoshu) : that.miaoshu != null) return false;
        if (minzu != null ? !minzu.equals(that.minzu) : that.minzu != null) return false;
        if (motto != null ? !motto.equals(that.motto) : that.motto != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (paytype != null ? !paytype.equals(that.paytype) : that.paytype != null) return false;
        if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false;
        if (photonumber != null ? !photonumber.equals(that.photonumber) : that.photonumber != null) return false;
        if (pingjia != null ? !pingjia.equals(that.pingjia) : that.pingjia != null) return false;
        if (poorstu != null ? !poorstu.equals(that.poorstu) : that.poorstu != null) return false;
        if (qq != null ? !qq.equals(that.qq) : that.qq != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (schoolid != null ? !schoolid.equals(that.schoolid) : that.schoolid != null) return false;
        if (sex != null ? !sex.equals(that.sex) : that.sex != null) return false;
        if (shenggao != null ? !shenggao.equals(that.shenggao) : that.shenggao != null) return false;
        if (sphoto != null ? !sphoto.equals(that.sphoto) : that.sphoto != null) return false;
        if (tuanyuan != null ? !tuanyuan.equals(that.tuanyuan) : that.tuanyuan != null) return false;
        if (updatetime != null ? !updatetime.equals(that.updatetime) : that.updatetime != null) return false;
        if (workcity != null ? !workcity.equals(that.workcity) : that.workcity != null) return false;
        if (worktime != null ? !worktime.equals(that.worktime) : that.worktime != null) return false;
        if (xingrong != null ? !xingrong.equals(that.xingrong) : that.xingrong != null) return false;
        if (youshi != null ? !youshi.equals(that.youshi) : that.youshi != null) return false;
        if (zhengzhi != null ? !zhengzhi.equals(that.zhengzhi) : that.zhengzhi != null) return false;
        if (zhenjiaid != null ? !zhenjiaid.equals(that.zhenjiaid) : that.zhenjiaid != null) return false;
        if (zhitype != null ? !zhitype.equals(that.zhitype) : that.zhitype != null) return false;
        if (zhuanye != null ? !zhuanye.equals(that.zhuanye) : that.zhuanye != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = cid;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (age != null ? age.hashCode() : 0);
        result = 31 * result + (brithday != null ? brithday.hashCode() : 0);
        result = 31 * result + (sphoto != null ? sphoto.hashCode() : 0);
        result = 31 * result + (motto != null ? motto.hashCode() : 0);
        result = 31 * result + homeprovince;
        result = 31 * result + (homecity != null ? homecity.hashCode() : 0);
        result = 31 * result + (schoolid != null ? schoolid.hashCode() : 0);
        result = 31 * result + (classid != null ? classid.hashCode() : 0);
        result = 31 * result + (zhitype != null ? zhitype.hashCode() : 0);
        result = 31 * result + industry;
        result = 31 * result + (honework != null ? honework.hashCode() : 0);
        result = 31 * result + worksprovince;
        result = 31 * result + (workcity != null ? workcity.hashCode() : 0);
        result = 31 * result + (shenggao != null ? shenggao.hashCode() : 0);
        result = 31 * result + (zhengzhi != null ? zhengzhi.hashCode() : 0);
        result = 31 * result + (zhuanye != null ? zhuanye.hashCode() : 0);
        result = 31 * result + workpost;
        result = 31 * result + (tuanyuan != null ? tuanyuan.hashCode() : 0);
        result = 31 * result + (minzu != null ? minzu.hashCode() : 0);
        result = 31 * result + (poorstu != null ? poorstu.hashCode() : 0);
        result = 31 * result + (huojiang != null ? huojiang.hashCode() : 0);
        result = 31 * result + (worktime != null ? worktime.hashCode() : 0);
        result = 31 * result + (comtype != null ? comtype.hashCode() : 0);
        result = 31 * result + (paytype != null ? paytype.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (photonumber != null ? photonumber.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (qq != null ? qq.hashCode() : 0);
        result = 31 * result + (miaoshu != null ? miaoshu.hashCode() : 0);
        result = 31 * result + (xingrong != null ? xingrong.hashCode() : 0);
        result = 31 * result + (pingjia != null ? pingjia.hashCode() : 0);
        result = 31 * result + (aihao != null ? aihao.hashCode() : 0);
        result = 31 * result + (fiendping != null ? fiendping.hashCode() : 0);
        result = 31 * result + (youshi != null ? youshi.hashCode() : 0);
        result = 31 * result + (jingyan != null ? jingyan.hashCode() : 0);
        result = 31 * result + (int) (publishid ^ (publishid >>> 32));
        result = 31 * result + check;
        result = 31 * result + (zhenjiaid != null ? zhenjiaid.hashCode() : 0);
        result = 31 * result + (isShow != null ? isShow.hashCode() : 0);
        result = 31 * result + hometown;
        result = 31 * result + location;
        result = 31 * result + readCount;
        result = 31 * result + agreeCount;
        result = 31 * result + thrownCount;
        result = 31 * result + (inserttime != null ? inserttime.hashCode() : 0);
        result = 31 * result + (updatetime != null ? updatetime.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        return result;
    }
}
